package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/5/28
 */
    
@Data
@TableName(value = "t_goods_subscribe")
public class GoodsSubscribe {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 规格id
     */
    @TableField(value = "specs_id")
    private Long specsId;

    /**
     * 冗余商品名字
     */
    @TableField(value = "goods_name")
    private String goodsName;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}